package c.h.a.c0;

import android.location.GpsStatus;
import android.location.GpsStatus.Listener;
import com.liuzh.deviceinfo.location.RealtimeSatelliteActivity;
import com.liuzh.deviceinfo.view.GpsSkyView;

/* compiled from: lambda */
public final /* synthetic */ class a implements Listener {
    public final /* synthetic */ RealtimeSatelliteActivity a;

    public /* synthetic */ a(RealtimeSatelliteActivity realtimeSatelliteActivity) {
        this.a = realtimeSatelliteActivity;
    }

    public final void onGpsStatusChanged(int i) {
        RealtimeSatelliteActivity realtimeSatelliteActivity = this.a;
        GpsStatus gpsStatus = realtimeSatelliteActivity.q.getGpsStatus(realtimeSatelliteActivity.t);
        realtimeSatelliteActivity.t = gpsStatus;
        GpsSkyView gpsSkyView;
        if (i == 1) {
            gpsSkyView = realtimeSatelliteActivity.v;
            gpsSkyView.u = true;
            gpsSkyView.invalidate();
        } else if (i == 2) {
            gpsSkyView = realtimeSatelliteActivity.v;
            gpsSkyView.u = false;
            gpsSkyView.F = 0;
            gpsSkyView.invalidate();
        } else if (i == 4 && gpsStatus != null) {
            realtimeSatelliteActivity.v.setSats(gpsStatus);
        }
    }
}
